﻿using Nancy.Swagger.Annotations.Attributes; 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NancyTest.Models
{
    [Model("上传数据")]
    public class UploadData
    {
        [ModelProperty(Description = "ID", Required = true)]
        public string Id { get; set; }

        [ModelProperty(Description = "姓名", Required = true)]
        public string Name { get; set; }


        [ModelProperty(Description = "年龄", Required = true, Minimum = 0, Maximum = 100)]
        public int Age { get; set; }

    }
}
